# todo 5.用户登陆（输错三次机会重试)


username = "666666"
password = "123456"

for i in range(1,4):
    user_name = input("请输入你的用户名:")
    pass_word = input("请输入你的密码:")
    if user_name == username and pass_word == password:
        print("登录成功")
        break
    else:
        print("用户名密码错误，请重新输入")
        if i == 3:
            print("三次计会已经用完,请重试")
            break
